package Handler;

// 测试代码
public class Client {
    public static void main(String[] args) {
        Handler handler1 = new ConcreteHandler1();
        Handler handler2 = new ConcreteHandler2();

        Request request1 = new Request(1);  // 创建一个级别为1的请求
        Request request2 = new Request(2);  // 创建一个级别为2的请求
        handler1.handleRequest(request1);
        handler1.handleRequest(request2);
    }
}
